﻿@model VehicleManagement.Models.Applicant

@{
    ViewBag.Title = "Edit";
}

<link href="@Url.Content("~/Content/css/special.css")" rel="stylesheet" type="text/css" />
<div class="mas">

<div class="toptitle">
   系统管理员管理平台
</div>
@*<div class="car"></div>*@
@Html.Partial("_PartviewAdmin")
<div class="rightshow">

<h2></h2>
@using (Html.BeginForm("UploadHeadImage", "Applicant", FormMethod.Post,new {enctype="multipart/form-data" }))
{
    @Html.HiddenFor(model=>model.ApplicantID)
<div class="box-detail" >
    <div class="box-img">
            <div class="box-img-wrap">
                @if (string.IsNullOrWhiteSpace(Model.Image))
                {
                    <img src="../../Content/themes/base/DMSource/png-0840.png" />
                }
                else
                {
                    <img src="/Photos/Applicant/@Model.Image" />
                }
            </div>
            <div class="a-wrap">
                <input type="file" id="file" name="file" />
                <input type="submit" value="上传" />
            </div>
          </div>
</div>
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend></legend>
       <div class="box">
        <div class="box-title">
            <span> @Html.ActionLink("返回申请人列表", "Index")</span>
        </div>

        <div class="box-detail" >
          
          <div class="box-detail1">
          @Html.HiddenFor(model => model.LoginName)
            <div class="box-detail1-linetype1 hide">
                <span class="labeldisplay">@Html.LabelFor(model => model.ApplicantID):</span>
                @Html.EditorFor(model => model.ApplicantID)
                @Html.ValidationMessageFor(model => model.ApplicantID)
            </div>   
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Name):</span>
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>   
            <div class="box-detail1-linetype1" > 
                <span class="labeldisplay">@Html.LabelFor(model => model.Sex):</span>
                    @Html.DropDownListFor(model => model.Sex, new SelectList(new[] { "男", "女" }, "男"))@Html.ValidationMessageFor(model => model.Sex)           
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Email):</span>
                @Html.EditorFor(model => model.Email)@Html.ValidationMessageFor(model => model.Email)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Telephone):</span>
                @Html.EditorFor(model => model.Telephone)@Html.ValidationMessageFor(model => model.Telephone)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Password):</span>
                @Html.EditorFor(model => model.Password)@Html.ValidationMessageFor(model => model.Password)
                <input class="detail-input3" type="button" value="确认修改" />
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Remark):</span>
                @Html.TextAreaFor(model => model.Remark)
            </div>
            <input class="button-applicantEdit" type="submit" value="修 改" />
        </div>
    </div>

    </fieldset>
}



<div class="clear"></div>
	
</div>

</div>